<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
    <title>书库调拨</title>
    <meta name="decorator" content="default"/>
    <script>
        function refreshParentPage(){
            window.parent.refresh = true;
            window.parent.window.jBox.close();
        }
    </script>
    <style>
        .field {
            width: 80px;
            text-align: right;
        }

        td {
            height: 30px;
        }
    </style>
</head>
<body>
<sys:message content="${message}"/>
<form:form modelAttribute="bkStore" action="${ctx}/book/store/changestoresave" method="post" cssStyle="margin-top: 10px;" class="form-horizontal">
    <form:hidden path="id"/>
    <table style="width: 95%;" class="table table-striped table-bordered table-condensed">
        <tr>
            <th width="150" style="text-align: right">当前书库</th>
            <td>
                    ${bkPlace.gcdName}
            </td>
        </tr>
        <tr>
            <th width="150" style="text-align: right">请选择要调拨的书库</th>
            <td>
                <form:select path="store" items="${fns:getAllStoreList(false)}" itemLabel="gcdName" itemValue="placeid" class="input-medium"/>
            </td>
        </tr>
    </table>

    <div class="form-actions">
        <shiro:hasPermission name="book:store:save">
            <input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;
        </shiro:hasPermission>&nbsp;&nbsp;
        <input class="btn btn-primary" type="button" style="margin-left: 30%;" onclick="refreshParentPage()"
               value="关闭页面"/>
    </div>
</form:form>
</body>
</html>